package cs.asiainfo.config.entity;

/**
 * Created by Administrator on 2016/8/10.
 */
public class MemberEntity {
    private int memberId;
    private String memberName;
    private String memberAddress;
    private String memberPro;

    public int getMemberId() {
        return memberId;
    }

    public void setMemberId(int memberId) {
        this.memberId = memberId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getMemberAddress() {
        return memberAddress;
    }

    public void setMemberAddress(String memberAddress) {
        this.memberAddress = memberAddress;
    }

    public String getMemberPro() {
        return memberPro;
    }

    public void setMemberPro(String memberPro) {
        this.memberPro = memberPro;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MemberEntity that = (MemberEntity) o;

        if (memberId != that.memberId) return false;
        if (memberName != null ? !memberName.equals(that.memberName) : that.memberName != null) return false;
        if (memberAddress != null ? !memberAddress.equals(that.memberAddress) : that.memberAddress != null)
            return false;
        if (memberPro != null ? !memberPro.equals(that.memberPro) : that.memberPro != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = memberId;
        result = 31 * result + (memberName != null ? memberName.hashCode() : 0);
        result = 31 * result + (memberAddress != null ? memberAddress.hashCode() : 0);
        result = 31 * result + (memberPro != null ? memberPro.hashCode() : 0);
        return result;
    }
}
